package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Category;
import org.csu.mypetstore.domain.Item;
import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    Category getCategory(String categoryId);

    List<Category> getCategoryList();

    Category getCategoryById(String categoryId);

    Product getProductByProductId(String productId);

    List<Product> getProductListByCategoryId(String categoryId);

    List<Item> getItemListByProductId(String ProductId);

    void newCategory(Category category);

    void deleteCategory(String categoryId);

}
